/**
 * @author bipul_sinha
 * @version 1.0
 * @created 26th November, 2010.
 *
 * CalendarEnum
 *
 * Copyright @ 2010
 * All Rights Reserved.
 * CONFIDENTIAL AND TRADE SECRET
 */

package com.ces.knacky.util;

/**
 * Enum for calendar/date operations
 *  
 * @author bipul_sinha
 *
 */
public enum CalendarEnum {
	/**
	 * Date format in YYYY-MM-DD format.
	 */
	YMD("yyyy-MM-dd"),
	
	MDY("MM/dd/yyyy");
	/**
	 * Constructor to initialize dates passed as an argument.
	 * 
	 * @param 	dateFormat
	 * 			Date format on which date needs to be convert or to be used.	
	 */
	CalendarEnum(String dateFormat){
		this.dateFormat = dateFormat;
	}
	/**
	 * Date formats selected/used in the enum.
	 */
	private String dateFormat;
	/**
	 * Returns dateformat of the enum chosen.
	 * 
	 * @return  String
	 * 			Date format of the enum used.
	 */
	public String getDateFormat(){
		return dateFormat;
	}
}
